package com.tmc.dao.impl;

import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.tmc.bean.common.ContextInfo;
import com.tmc.entity.baseinfo.CarType;

/**
 * @author zhang
 * @date 2017年12月26日 下午4:44:53 
 */

@Repository
public class CarTypeDaoImpl extends BaseDaoImpl<CarType>{

	/**
	 * @author zhang
	 * @param context
	 * @param yitu8CarTypeID
	 * @return
	 */
	public CarType getByYitu8CarTypeID(ContextInfo context, Integer yitu8CarTypeID) {
		String sql =" from CarType c where c.enabledFlag = 'Y' and c.yitu8CarTypeID = :yitu8CarTypeID";
		Map<String, Object> params = new HashMap<>();
		params.put("yitu8CarTypeID", yitu8CarTypeID);
		return this.get(sql, params);
	}

}
